#ifndef _USBLIBS_H_
#define _USBLIBS_H_

#include "usbDef.h"

class usbDrv
{
public:
	usbDrv();

	bool usbOpen(int vid, int pid);
	void usbClose();
	int usbRecv(char *rBuffer, int rLen, int mode);
	int usbSend(char *wBuffer, int wLen, int mode);

private:
	int transfer_bulk_async(int ep, char *bytes, int size, int timeout);

public:
	usb_dev_handle *m_dev;
};

#endif

